package mx.com.switz.autopista.controller;

import mx.com.switz.autopista.utils.MailMail;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MailEnvio {

	 public static void main( String[] args )
	    {
	   ApplicationContext context = new ClassPathXmlApplicationContext("javamail.xml");
	 
	   MailMail mm = (MailMail) context.getBean("mailMail");
	   mm.sendMail("jovaniac@gmail.com","jovaniac@gmail.com","Pruebas de Correo Autopista.com", "Testeo de Mail con Spring Email Sender ^^");
	 
	    }
}
